/* 通用样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f6fa;
    min-height: 100vh;
    margin: 0;
}

/* Wrapper */
.wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* 侧边栏样式 */
.sidebar {
    width: 250px;
    background-color: #fff;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    padding-top: 20px;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.sidebar .logo {
    text-align: center;
    margin-bottom: 30px;
    padding: 0 20px;
}

.sidebar .logo h2 {
    font-size: 24px;
    color: #333;
    margin: 0;
    padding: 20px;
    text-align: center;
    font-weight: bold;
}

.sidebar .menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar .menu li {
    margin: 5px 0;
}

.sidebar .menu .menuItem {
    color: #666;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 12px 20px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.sidebar .menu .menuItem i {
    font-size: 16px;
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.sidebar .menu .menuItem span {
    transition: opacity 0.3s ease;
}

.sidebar .menu .menuItem:hover,
.sidebar .menu .menuItem.active {
    background-color: #f0f7ff;
    color: #4a90e2;
}

/* 主体内容区域 */
.main-content {
    flex: 1;
    margin-left: 250px;
    min-height: 100vh;
    background-color: #f5f6fa;
    position: relative;
}

/* Header 样式 */
.header {
    background-color: #fff;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 90;
}

.header-title {
    font-size: 20px;
    color: #333;
    font-weight: 500;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

#currentUser {
    color: #666;
    font-size: 14px;
}

.collapseTp {
    width: 24px;
    height: 24px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .sidebar {
        width: 0;
        transform: translateX(-100%);
    }

    .sidebar.show {
        width: 250px;
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .main-content.collapsed {
        margin-left: 250px;
    }
}

/* 叠状态样式 */
.sidebar.collapsed {
    width: 60px;
}

.sidebar.collapsed .logo h2 {
    display: none;
}

.sidebar.collapsed .menu .menuItem {
    justify-content: center;
    padding: 12px;
}

.sidebar.collapsed .menu .menuItem i {
    margin-right: 0;
}

.sidebar.collapsed .menu .menuItem span {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.main-content.collapsed {
    margin-left: 60px;
}

.collapseTp.active {
    transform: rotate(180deg);
}

#collapse {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    color: #666;
    transition: all 0.3s ease;
    margin-right: 16px;
}

#collapse:hover {
    background-color: #f5f5f5;
    color: #333;
}

#collapse i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

#collapse.active i {
    transform: rotate(180deg);
}

